<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>修改广告</title>
    <link rel="stylesheet" href="/lib/layui/css/layui.css" media="all">
    <link href="/lib/font-awesome-4.7.0/css/font-awesome.css" rel="stylesheet"/>
    <link href="/lib/winui/css/winui.css" rel="stylesheet"/>
    <style type="text/css">
        .layui-input-block {
            margin-left: 110px;
            min-height: 36px;
            padding-right: 15px;
        }
    </style>
</head>

<body>
<div style="margin-top: 20px;">

</div>
<form class="layui-form" action="/newsAdvertisementController/update">
    <input id="advertisementId" name="advertisementId"
           class="layui-input"
           type="hidden" value="${newsAdvertisement.advertisementId!}">


    <div class="layui-form-item layui-hide">
        <label class="layui-form-label">发布者</label>
        <div class="layui-input-block">
            <input id="creatorId" lay-verify="creatorId" lay-vertype="tips"
                   name="creatorId"
                   class="layui-input"
                   type="text" value="${newsAdvertisement.creatorId!}">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">广告超链接</label>
        <div class="layui-input-block">
            <input id="advertisementUrl" lay-verify="advertisementUrl" lay-vertype="tips"
                   name="advertisementUrl"
                   class="layui-input"
                   type="text" value="${newsAdvertisement.advertisementUrl!}">
        </div>
    </div>


    <div class="layui-form-item">
        <label class="layui-form-label">广告图片</label>

        <input id="advertisementImg" style="display: none" lay-vertype="tips" lay-verify="advertisementImg"
               name="advertisementImg"
               class="layui-input"
               type="text" value="${newsAdvertisement.advertisementImg!}">
        <div class="layui-upload">
            <button type="button" class="layui-btn" id="accPhoto">更新图片</button>
            <div class="layui-upload-list" style="padding-left: 108px;">
                <img class="layui-upload-img" id="accPhotoimg" width="109" height="112" src="${newsAdvertisement.advertisementImg!}">
                <p id="accPhoto"></p>
            </div>
        </div>

    </div>




    <div class="layui-form-item layui-hide">
        <label class="layui-form-label">点击量</label>
        <div class="layui-input-block">
            <input id="clicksCount" lay-verify="clicksCount" lay-vertype="tips"
                   name="clicksCount"
                   class="layui-input"
                   type="text" value="${(newsAdvertisement.clicksCount!)?c}">
        </div>
    </div>


    <div class="layui-form-item layui-hide">
        <label class="layui-form-label">创建时间</label>
        <div class="layui-input-block">
            <input id="createTime" lay-vertype="tips" required
                   lay-verify="required" name="createTime"
                   class="layui-input"
                   type="text" type="text" lay-vertype="tips" required
                   lay-verify="required" lay-verify="date" placeholder="yyyy-MM-dd"
                   value="${(newsAdvertisement.createTime!)?string('yyyy-MM-dd HH:mm:ss')}">
        </div>
    </div>




    <div class="layui-input-block" style="text-align: center;margin: 0px;padding: 0px;">
        <button class="layui-btn" lay-submit lay-filter="formDemo">立即提交</button>
    </div>
</form>

<script src="/lib/layui/layui.js"></script>
<script src="/js/newsAdvertisement/edit.js"></script>
</body>

</html>
